package com.css.zfzx.fwsjcj.modules.taskmanage.taskfrom.service;

import cn.afterturn.easypoi.excel.entity.ImportParams;
import com.css.zfzx.fwsjcj.modules.analysis.vo.AnalysisQueryVo;
import com.css.zfzx.fwsjcj.modules.taskmanage.taskfrom.entity.FwCtiyHouseEntity;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

public interface CityTaskFormService {

    void saveFrom(FwCtiyHouseEntity fwCtiyHouseEntity, String type);

    /**
     * 根据房屋子表id查找子表
     */
    FwCtiyHouseEntity findCityById(String formId);

    List<FwCtiyHouseEntity> findCitys();

    void subById(String id, String type);

    void deleteById(String id);

    void updCity(String type, FwCtiyHouseEntity fwCtiyHouseEntity);

    void spReason(String status, String reason, String formId);

    // 获取数量
    long count(AnalysisQueryVo analysisQueryVo);

    // 获取总面积;
    int areaCount(AnalysisQueryVo analysisQueryVo);

    // 更新
    void update(FwCtiyHouseEntity fwCtiyHouseEntity);

    //根据建筑名称模糊查
    List<FwCtiyHouseEntity> buildingByBuilding(String buildingName);

    /**
     * 导出Excel
     */
    void export(List<String> idList, HttpServletResponse response);

    /**
     * 根据建筑类型查询图片地址
     *
     * @param idList 从主表中获取的子表ID集合
     * @return
     */
    List<FwCtiyHouseEntity> findImageURL(List<String> idList);


    String importCityTask(MultipartFile file, ImportParams params, String taskName, String taskId);

    String findByFwId(String fwId);
}
